Part Number Hot Search : 
MP7611AP HAT2052T MM3Z2V M12532DH MMDF4N01 TP4057 CS5550 C865008
Product Description
Full Text Search
 

To Download 28823 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  599 menlo drive rocklin, ca 95765, usa office: (916) 624-8333 fax: (916) 624-8003 web site: www.parallax.com forums: forums.parallax.com sales: (888) 512-1024; sales@parallax.com tech support: (888) 997-8267; support@parallax.com copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 1 of 11 parallax servo controller ? usb (#28823) rev b 16-channel servo control with a usb interface introduction with the proliferation of servos used in technology today comes the obligation to manage multiple servos each executing complex motions. the original parallax servo controller (#28023) was designed to remove the burden of driving the servo pulses fr om the controller and thereby expand the number of servos that one controller could be expected to handle. to that end the original psc was quite successful, but for some of the more complex applic ations writing a textual program to control many servos executing compounded motions and actions can be tedious to say the least. one way to make the whole application development pr ocess easier is to change the primary interface from a keyboard (text-based code) to that of a mous e (visual based program). by adding a usb port to the servo controller and providing the user with a free graphical user interface, a direct link between mouse and servo is made. move the mouse, the servo moves in real-time. now the task of developing a program to control intricate servo sequen ces becomes a palatable, fun process. the concept of the frame is introduced to he lp keep movements and sequences organized and manageable. sixteen servo positions and time delays make up a frame; two or more frames constitute a sequence. sequences may be stored as files on your pc?s hard drive to be retrieved for later use. like a movie, a sequence may be played, paused, stopped, or edited repeatedly until you get it just the way you want it. with animatronics customers in mind, the current psci software supports up to 128 frames. (most animal walking sequences require fewer than 8 frames.) features ? each servo is individually controllable : position, rate, offset, and post delay ? speed control : each servo may have any of 63 run-time changeable rates ? 128 frames : supported though most sequences require far fewer frames before you begin the processor used on the psc-usb requires 5 vdc which is supplied by the usb port. servos require far more power than the usb port can supply. therefore you must use a separate power supply for your servos. in genera l, servos require 4-7.5 vdc. be sure that the servo power source can supply ample curren t at the proper voltage and will not damage the servos.
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 2 of 11 getting started 1. locate and remove the psc-usb from its protective anti-static bag. it should closely resemble the image shown (right) 2. mount the psc-usb using 4-40 screws (or equivalent). ensure that none of the connections on the pcb bottom are inadvertently shorted. 3. ensure the servo power switch on the parallax servo controller is off, and then connect the power source for the servos to the screw terminals observing proper polarity. 4. servos require more power than the usb port can supply. for this reason, you must connect a separate power supply for the servos, as shown below. * note: though a rev a board is depicted here, the connections for the rev b board are exactly the same. ? 2005 rev a ch15 ch13 ch11 ch9 ch7 ch5 ch3 ch1 ch14 ch12 ch10 ch8 ch6 ch4 ch2 ch0 s + - - + s x2 b www.parallax.com standard servo www.parallax.com standard servo
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 3 of 11 installing the psci software go to www.parallax.com and search for 28823. on the 28823 product page under downloads, find the link for the psc software for pc. once the program is downloaded, double-click on it and follow the installation instructions. using the psci software once installed, launch the psci software. it should start immediately and the following screen will be displayed: usb drivers the ftdi chip used by the psc-usb requires you to in stall usb drivers on your pc before using it. ftdi drivers for most windows operating systems are includ ed with the basic stamp editor and propeller tool software installers. you may also download them from the link on the home page of www.parallax.com , or go to www.ftdichip.com and check for updated drivers for your particular os. after downloading has completed, close your web browser and double click on the driver file you just downloaded to start the installation process. follow the prompts as directed . if you have any difficulty, simply call parallax tech support toll-free at (888) 99-stamp, [888-997-8267]. now you are ready to use your new hardware.
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 4 of 11 selecting the usb port unlike serial ports, usb ports are dynamic. that is to say that they are manifested when the psc-usb is connected, and extinguish themselves upon disconnect ing. if you are so inclined to witness this phenomenon, simply open up the properties of the my computer icon, then click on the hardware tab, then click on the device manager button. once in th e device manager, click on the small + sign next to the ports icon. now, connect and disconnect the ps c-usb while watching the ports list. for proper operation, connect your psc-usb to the pc usb port before launching the psci software. to select a com port, simply click on the file tab and hover the mouse over the select comm port entry to invoke the list of found comm ports. to choose a comm port, simply click on that comm port. if all goes well, a message will report the su ccessful opening of the comm port. if you wish to confirm the presence of the psc-usb, you may then click on file->get psc version. if the psc-usb is found, the version number will appear in th e message window on the left side of the psci screen. see below. controls description to control the servos in real-time mode, connect yo ur servos to the psc-usb and simply slide the power switch on the psc-usb to the on position. now, movi ng the corresponding servo position slide bar in the psci software positions the servo.
copyright ? parallax, inc. ? parallax servo controller usb (#28823) ? v1.2 6/20/2008 page 5 of 11 offset not all servos are alike so the offset control allows yo u to vary the center point of each servo. this may not matter too much for standard servos, but is very helpful when controlling serv os modified to rotate 360 degrees. position you may use either the slide control or the up/down a rrows, or enter the servo position numerically to set the servo position. please note that by clicking on the numbers 2500, 1500, or 750, the servo position will be set to that number. these numbers corresp ond to the width of the servo command pulse, in microseconds. rate each servo may be set to a rate of rotation. furt hermore, each servo may have a different speed for each frame. a servo rate of 0 will cause the servo to move as quickly as possible; its fastest rate. a servo position of 63 will cause the servo to move to it s destination position at its slowest rate. at speed 63, the servo takes about 45 second s to complete a 180 degree motion. delay when a frame is executed, as in animate mode, a se rvo command is sent to the psc-usb for each servo in the order 0,1,2,3? after each servo command is sent, the delay time is observed before sending the next servo command. even if a servo has not reached its destination before a new servo command is sent, it will immediately start executing the new comm and. the delay parameter should be long enough to let the servo travel to its destination. the delay parameter has no effect when operating in real-time mode. frame the number to the right of the word ?frame? indicates the current frame. go to the number to the right of the phrase ?go to? shows the frame number that will be jumped to when all servo commands have been sent and all delays have been observed for the current frame. note: no servo commands are sent for serv os that appear to be unused. animation controls controls are provided to facilitate the creation, co ntrolling, and editing of animation sequences. by hovering the mouse over each control button (without clicking) a hint will pop up to help clarify the purpose of the button.
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 6 of 11 creating a sequence creating a sequence is easy. the following exam ple shows you how to create a simple sequence. 1. click on the 500 position for servo channel 0 an d edit the delay for that channel to 500 ms as shown. 2. click the red circle (record) to record the fram e. note: clicking the record button on the last frame of a sequence caused the current frame to be copied to the next frame (this helps with animation sequences). if you were to click the re cord button after editing an existing frame, the current frame would be updated, and the next frame would not be disturbed. 3. click the number 2500 for channel 0 and click the record button again. 4. click the number 500 for channel 0 and click the record button again. 5. click the number 1500 for channel 0, increment the go to number to 0 and click the record button. that completes one simple animation sequence. no w you may use the cd-like control buttons to run, stop, and pause your animation sequence. 1. to save your sequence, simply click on sequence->save and specify a file name. 2. to retrieve your saved sequence, simply clic k on sequence->open and specify the filename.
copyright ? parallax, inc. ? parallax servo controller usb (#28823) ? v1.2 6/20/2008 page 7 of 11 notes concerning the connection of th e psc-usb to your microcontroller: for the board of education, rev c: 1. the power source for the servos must be a separate power source from that of the board of education. 2. connect the three-pin cable from the psc-usb to x4, slot 15. 3. ensure that the vservo jumper selector, (betw een x4 and x5), is set to the vdd position. connect your servos to the 3-pin terminals provided. 4. to power your psc-usb, the power switch must be placed to the ?2? position. for all others: 1. the power source for the servos must be a separate power source from that of the 5 vdc used to supply the on-board logic. 2. connect the three pin cable from the psc-usb to: vdd (red), vss (black), and the white wire to your choice of i/o pin. vdd must be 5 vdc. no te: the idle state of the serial line is 5 vdc. hardware reset pushbutton the pushbutton on the psc-usb is connected to the reset circuit of the on-board microcontroller. pushing this pushbutton resets the microcontroller thereby resetting all parameters to their default values. hardware/firmware revision list hardware firmware ------------------------------------------------------------------------------------------------------------------------------- - rev a 1.4 (internal prototype, never released) no known issues with this version of firmware. thou gh the psc ? serial was released with earlier version of firmware, the psc-usb was only released with v1.4 firmware. ------------------------------------------------------------------------------------------------------------------------------- - rev b 1.4 (initial release) no known issues with this version of firmware. though the psc ? serial was released with earlier versions of firmware, the psc-usb wa s only released with v1.4 firmware. ------------------------------------------------------------------------------------------------------------------------------- -
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 8 of 11 figure 3: parallax servo controller, typical connections follow the instructions in this document when making connections to the psc. to power up your psc, slide the power switch on the board of education (boe ) to the ?2? position. you should see the red led illuminate on the psc as well as the green led light on the boe. serial command format the psc supports several commands that are sent to it via rs-232 serial protocol. the voltage swing of this serial line is 0-5 vdc (ttl level). each serial command must be preceded with an exclamation point, ?!?, and the pair of letters, ?sc?. when your psc starts up, the default baud rate is 2 400 n 8 2, (no parity, eight data bits, two stop bits) true data, open-drain (driven low, pulled high). the exclamation point is used in some appmods to determine the incoming baud rate, thereby supportin g a feature called auto-bau d. the psc does not support auto-baud. the ?sc? portion is an identifier that pertains to the psc. together, the ?!? and the ?sc? form a preamble, ?!sc?. the preamble serves to distinguish commands for the psc from other messages on the serial i/o line, and allow different types of appmods to use the same serial line. after the preamble is sent, the command and associated parameters are sent. the eighth and final character sent is a $0d, (cr), used to terminate the string. if the command causes the psc to reply, a three-byte reply is sent after a 1.5 ms delay.
copyright ? parallax, inc. ? parallax servo controller usb (#28823) ? v1.2 6/20/2008 page 9 of 11 ver? command ? identify firmware version number syntax: ?!scver?? $0d reply: ?1.3? the ver? command causes the psc to reply with its firmware version number. a string terminator, $0d, must follow each command; note that you may us e the constant cr instead. the version number divulged pertains to the version of firmware containe d within the ic. the following code snippet can be used to find and identify your psc. '{$pbasic 2.5} sdat pin 15 ' serial data i/o pin baud con 396 ' constant for 2400 baud buff var byte(3) ' temporary variable findpsc: ' find and get the version debug "finding psc", cr ' number of the psc. serout sdat, baud+$8000, ["!scver?",cr] serin sdat, baud, 500, findpsc, [str buff\3] debug "psc ver: ", buff(0), buff(1), buff(2), cr stop within the debug terminal, you will see a series of ?finding psc? messages. the basic stamp should find the unit immediately. this is evidenced by the psc replying with a number like ?1.3?, which is it?s firmware version number. if after 3 or 4 messages the psc has not been found, you should check that all the connections are proper and that power is applied. if the psc fa ils to respond, you may momentarily push the reset button on the psc. if th e psc fails to respond, contact parallax technical support. sbr command ? set the baud rate (to either 2400 or 38k4 baud) syntax: ?!scsbr? x $0d reply: ?br? x (where x is either 0 for 2400, or 1 for 38k4) after establishing communications with the psc you may wish to elevate the baud rate to 38k4 baud. to do this, you may follow the example in the following code snippet. '{$pbasic 2.5} sdat pin 15 ' serial data i/o pin baud con 396 ' constant for 2400 baud buff var byte(3) ' temporary variable setbaud: debug "setting baudrate", cr serout sdat, baud+$8000, ["!scsbr",1,cr] serin sdat, 6,500, setbaud, [str buff\3] debug "baud reply: ", buff(0), buff(1), dec1 buff(2), cr stop note that the serin command?s baud mode is set to 6 (38k4). that?s because the psc will reply to the command with the new baud rate to confirm the comma nd has been executed. if you wished to set the baud rate back to 2400, you must either reset the co ntroller or send it a sbr, $0 command at 38k4 baud
copyright ? parallax, inc. parallax servo contro ller usb (#28823) v1.2 6/20/2008 page 10 of 11 rate. once the baud rate has been changed, it would be wise to ?ping? the servo controller from time to time. if either the basic stamp or the psc reset without the other resetting, they could be left in the state of different baud rates. when ?pinging? the psc with an ver? command, the pbasic serin function should employ its timeout feature. at this timeout label, you can them attempt to ver? the psc at the other baud rate. once identified, the baud rate can again be set, and the program can resume. position command ? set the position of a servo channel syntax: ?!sc? c r pw.lowbyte, pw.highbyte, $0d reply: none to control a servo, you must write a position command to the psc. each position command is comprised of a header, three parameters: c, r, and pw, and a command terminator. the header: ?!sc? is the header. the header signifies to all devices on the same wire that this is a command for a servo controller. the c parameter is a binary number 0-31 corresponding to the servo channel number. the servo channel number should be 0-15 with no jumper present on the psc, or 16-31 with the jumper present. with a jumper present on the psc, servo channel 0 become channel 16, channel 1 becomes 17, etc. the r parameter is a binary number 0 ? 63 that controls the ramp function for each channel. if the ramp parameter is set to 0, ramping is disabled and th e pulse width will be set to the p parameter sent immediately. ramp values of 1-63 correspond to sp eeds from ? of a second up to 60 seconds for a full 500 s to 2.50 ms excursion for standard servos. this correlation is rather linear though no equation presently exists. the p parameter is a 16-bit word that corresponds to the desired servo position. the range, (250-1250), corresponds to 0 to 180 degrees of servo ro tation with each step equaling 2 s. the command terminator, $0d, (cr), must not be omitted. the following code snippet demonstrates the position command by ramping a servo channel 11 from 0 to 255 at ramp rate 7. '{$pbasic 2.5} ch var byte pw var word ra var byte sdat con 15 baud con 396 ra = 7 ch = 15 do pw = 1250 serout sdat, baud+$8000,["!sc", ch, ra, pw.lowbyte, pw.highbyte, cr] pause 1000 pw = 250 serout sdat, baud+$8000,["!sc", ch, ra, pw.lowbyte, pw.highbyte, cr] pause 1000 loop
copyright ? parallax, inc. ? parallax servo controller usb (#28823) ? v1.2 6/20/2008 page 11 of 11 note: not all servos are exactly alike. if your servos appear to strain when commanded to position 250, you should increase the 250 up to 260 (or so) to prevent the servo from straining itself. similarly, if your servo st rains when commanded to go to position 1250, you should decrease the 1250 to 1240 or so to prevent the servo from straining itself. rsp command ? report the position of a servo channel syntax: ?!scrsp? x $0d reply: x y z(where x is the channel number, and z:y is the value reported) sometimes it is necessary to know the current servo position. the rsp command returns the value of the specified servo channel. if the servo is still movin g as a result of a ramp command, the position may still be read. the following code snippet demonstrates how to use this command. '{$pbasic 2.5} ch var byte pw var word ra var byte x var byte buff var byte(3) sdat con 15 baud con 396 init: ra = 15: ch = 12 do pw = 1240: gosub wrservo pw = 240: gosub wrservo loop wrservo: serout sdat, baud+$8000,["!sc", ch, ra, pw.lowbyte, pw.highbyte, cr] for x = 0 to 4 pause 1000 serout sdat, baud+$8000, ["!scrsp", ch, cr] serin sdat, baud, 1000, init,[str buff\3] debug "servo ", dec buff(0), " ", hex2 buff(1), " :", hex2 buff(2), cr next return within the do-loop, this program sets the pulse width (pw) to one extreme or the other and writes this value to the psc. the ramp value (ra) was set to give the program time to poll the servo position several times. within the wrservo subroutine, the new pw is sent, and the position is polled five times, once each second. a debug command is used to format th e reply and post it to a window for your review. liability disclaimer parallax, inc. is not responsible for special, inci dental, or consequential damages resulting from any breach of warranty, or under any legal theory, includ ing lost profits, downtime, goodwill, damage to or replacement of equipment or property, and any costs of recovering, reprogramming, or reproducing any data stored in or used with parallax products.


▲Up To Search▲   

 
Price & Availability of 28823

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X